package cn.com.chengmandian.erp.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * ERP系统-库存模块-运营发货单
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("erp_stock_send")
@ApiModel(value = "ErpStockSend对象", description = "ERP系统-库存模块-运营发货单")
public class ErpStockSend implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("CK+年月日+两位数字（当天入库单总数+1，不足两位补0，多了递增）")
    private String sendNo;

    @ApiModelProperty("请购单ID(废弃)")
    private Integer applyId;

    @ApiModelProperty("品类ID")
    private Integer categoryId;

    @ApiModelProperty("仓库ID")
    private Integer warehouseId;

    @ApiModelProperty("关联业务合同ID")
    private Integer businessContactId;

    @ApiModelProperty("出库类型 1-销售出库 2-租赁出库 3-领用出库 4-其他出库 5-直发出库")
    private Integer outType;

    @ApiModelProperty("出库方式 1-库存 2-供应商直发")
    private Integer outKind;

    @ApiModelProperty("发往合作客户ID")
    private Integer outCompanyId;

    @ApiModelProperty("合作客户名称")
    private String outCompanyName;

    @ApiModelProperty("发往运营仓ID")
    private Integer outWarehouseId;

    @ApiModelProperty("预计出库时间")
    private Date expectOutTime;

    @ApiModelProperty("出库用途")
    private String sendUse;

    @ApiModelProperty("出库类型 1-物流 2-自提")
    private Integer sendType;

    @ApiModelProperty("联系人")
    private String contractName;

    @ApiModelProperty("联系电话")
    private String contractPhone;

    @ApiModelProperty("收货地址")
    private String contractAddress;

    @ApiModelProperty("物流公司")
    private String deliveryCompany;

    @ApiModelProperty("物流单号")
    private String deliveryNo;

    @ApiModelProperty("标题")
    private String name;

    @ApiModelProperty("货品描述，[{“category\":\"电池\",\"name\":\"4824G\",\"amount\":11},.....]")
    private String goods;

    @ApiModelProperty("货品种类数量")
    private Integer goodsCategory;

    @ApiModelProperty("货品总数")
    private Integer goodsAmount;

    @ApiModelProperty("总成本")
    private BigDecimal goodsPrice;

    @ApiModelProperty("备注描述")
    private String remark;

    @ApiModelProperty("状态，1-草稿 2-审批中 3-审批完成 4-发货完成 5-审批不通过 6-废弃")
    private Integer status;

    @ApiModelProperty("出库审批时间")
    private Date outTime;

    @ApiModelProperty("出库审批人ID")
    private Integer outUser;

    @ApiModelProperty("出库审批人姓名")
    private String outName;

    @ApiModelProperty("出库审批意见")
    private String outRemark;

    @ApiModelProperty("创建人ID")
    private Integer createUser;

    @ApiModelProperty("创建人姓名")
    private String createName;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("修改时间")
    private Date modifyTime;
}
